package com.guiji.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @description:
 * @author: Jodie
 * @time: 2022/12/2
 */
public class DateUtils {

    public static String getCurrentDateTime(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
        return sdf.format(new Date());
    }

    public static void main(String[] args) {
        System.out.println(getCurrentDateTime());
    }
}
